#ifndef RDR_H_
#define RDR_H_

#include "recbase.h"
#include "rectype.h"
#include "stdffield.h"
#include <vector>

namespace opsrc {
    namespace stdf {

        class Rdr : public opsrc::stdf::RecBase
        {
        public:
            Rdr(stdf_rec stdfrec,  int reclen, std::ios::pos_type fileRecFirstBytePosition, int orderindex,  endian e, char* buf);
            virtual ~Rdr();

            const StdfField<int> getRetestBinCount() const;
            void setRetestBinCount(StdfField<int> numbins);

            const StdfField<vector<unsigned int> > getRetestBinNumber() const;
            void setRetestBinNumber(StdfField<vector<unsigned int> > rtstbin);

            void readFields(char *buf);

        protected:
            Rdr();

        private:
            StdfField<int> num_bins;
            StdfField<vector<unsigned int> > rtst_bin;
            endian en;
        };

    } // namespace stdf
}		// namespace opsrc

#endif /*RDR_H_*/
